package client

import (
	"douyin/idl/repository/favorite"
	"fmt"
	"google.golang.org/grpc"
	"google.golang.org/grpc/credentials/insecure"
)

func NewFavoriteClient() favorite.FavoriteServiceClient {
	fmt.Println("Favorite微服务客户端创建")
	conn, _ := grpc.Dial("127.0.0.1:8082", grpc.WithTransportCredentials(insecure.NewCredentials()))
	favoriteServiceClient := favorite.NewFavoriteServiceClient(conn)
	return favoriteServiceClient
}
